(function () {
    var $self;
    return $self = Ext.define('Aurora.store.AccountsList', {
        extend: 'Ext.data.Store',
        xtype: 'accountsList',
        requires: ['Aurora.model.AccountItem'],
        config: {
            autoLoad: true,
            pageSize: 100,
            model: 'Aurora.model.AccountItem',
            proxy: {
                type: 'ajax',
                url: '/aurora/accounts/getlist',
                reader: {
                    type: 'json',
                    rootProperty: 'data'
                },
                startParam: 'from',
                limitParam: 'count'
            }
        }
    });
})();